/**
* 代码调用Ipd地址
* */
var Url = 'http://221.2.74.114:18801';
var Map_Key = '62aefed2dd623a0f5042245bf44f362f'


/**
* 消防猿时间戳
* */
function getLocalTime() {
    //debugger
    var time = new Date();
    var y = time.getFullYear();
    var m = time.getMonth()+1;
    var d = time.getDate();
    var h = time.getHours();
    var mm = time.getMinutes();
    var s = time.getSeconds();
    var dd = y+'-'+add0(m)+'-'+add0(d)+'-'+add0(h)+'-'+add0(mm)+'-'+add0(s);
    //console.log(dd)
    return  dd.replace(/-/g,"")
}

/**
 * 本地时间
 * */
function showLeftTime()

{
    var now=new Date();
    var year=now.getFullYear();
    var month=now.getMonth()+1;
    if(month<10){
        month='0'+month;
    }
    var day=now.getDate();
    if(day<10){
        day='0'+day;
    }
    var hours=now.getHours();
    if(hours<10){
        hours='0'+hours;
    }
    var minutes=now.getMinutes();
    if(minutes<10){
        minutes='0'+minutes;
    }
    var seconds=now.getSeconds();
    if(seconds<10){
        seconds='0'+seconds;
    }
    var showTime=year+"年"+month+"月"+day+"日 "+hours+":"+minutes+":"+seconds+"";
    $('.head-time').html(showTime);
//一秒刷新一次显示时间
    var timeID=setTimeout(showLeftTime,1000);
}

function add0(m){
    return m<10?'0'+m:m
}


/**
*       根据坐标查找地图中位置
*      参数     | 类型 |   说明
*     output      xml     必填
*    location    string   坐标位置XY
*    radius      string   非必填 搜索半径单位米
*   var mapXY = 'https://restapi.amap.com/v3/geocode/regeo?output=xml&location=116.310003,39.991957&key=<用户的key>&radius=1000&extensions=all'

 https://lbs.amap.com/api/webservice/guide/api/georegeo#geo
 **/
var mapXY = 'https://restapi.amap.com/v3/geocode/regeo'
